import QtQuick 2.0
import QtQuick.Controls 1.4

Item {
    id:pageLoad
    anchors.fill: parent;

    property string strTxt:"";

    Button{
        id:btn;
        anchors.fill: parent;
        //anchors.margins: 1;

        text:strTxt;
        anchors.bottomMargin: 3;

        isDefault:true;

        menu:Menu{
            id:btnMenu;

            MenuItem{text:"Button1";}
            MenuItem{text:"Button2";onTriggered: btn.text=text;}
            MenuItem{text:"Button3";onTriggered: btn.text=text;}
            MenuItem{text:"Button4";onTriggered: btn.text=text;}

        }
    }

}

